﻿using System;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class GridSetRecord : BiffRecord
    {
        protected override void ReadContent(BiffReaderContext context, int length)
        {
            ushort u = context.ReadUInt16();
#if DEBUG
            if (u != 1)
                Debug.WriteLine("u != 1" + u);
#endif
        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.GridSet; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            context.Writer.Write((ushort)1);
        }
    }
}